import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { MenuPage } from './menu.page';

const routes: Routes = [
  {
    path: '',
    redirectTo: 'mhome',
    pathMatch: 'full'
  },
  {
    path: 'mhome',
    loadChildren: './mhome/mhome.module#MhomePageModule'
  },
  {
    path: 'mlist',
    loadChildren: './mlist/mlist.module#MlistPageModule'
  }
];

@NgModule({
  imports: [
    RouterModule.forChild(routes)
  ],
  exports: [RouterModule]
})
export class MenuPageRoutingModule {}
